//
//  Result.m
//  __PRODUCTNAME__
//
//  Created by QC.L on 16/08/10
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "Result.h"
#import "Brandlist.h"

@implementation Result
- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"brandlist"]) {
        NSMutableArray<Brandlist *> *brandlist = [NSMutableArray array];
        NSArray *valueArray = value;
        for (NSDictionary *branlistDic in valueArray) {
            Brandlist *brand = [Brandlist modelWithDictionary:branlistDic];
            [brandlist addObject:brand];
        }
        _brandlist = brandlist;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"brandlist" : [Brandlist class]};
}

@end
